package game.view.scene
{
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	
	import game.define.NotificationNames;
	import game.manager.LayerManager;
	import game.model.player.PlayerProxy;
	import game.model.scene.SceneProxy;
	import game.model.scene.vo.MapConfigVO;
	import game.model.scene.vo.MapGridConfigVO;
	import game.model.scene.vo.SceneConfigVO;
	import game.view.map.MapView;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	/**
	 * 场景控制中心 【地图，人物，NPC，建筑】
	 * @author jjww
	 * 
	 */	
	public class SceneMediator extends Mediator
	{
		public static const NAME:String = "SceneMediator";
		
		public function SceneMediator(mediatorName:String=null, viewComponent:Object=null)
		{
			super(NAME, null);
			inits();
		}
		
		override public function listNotificationInterests():Array
		{
			return [
				NotificationNames.SCENE_SWITCH
			];
		}
		
		override public function handleNotification(notification:INotification):void
		{
			var body:Object = notification.getBody();
			switch (notification.getName())
			{
				case NotificationNames.SCENE_SWITCH:
					break;
			}
		}
		
		
		///: available and initialize mothod
		private var _playerProxy:PlayerProxy = null;
		private var _sceneProxy:SceneProxy = null;
		
		private function inits():void
		{
			_playerProxy = facade.retrieveProxy(PlayerProxy.NAME) as PlayerProxy;
			_sceneProxy = facade.retrieveProxy(SceneProxy.NAME) as SceneProxy;
		}
	}
}